<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link href="css/main.css" rel="stylesheet" type="text/css" />
		<link href="css/style.css" rel="stylesheet" type="text/css" />
		<title>校园豆豆网</title>
		<script type="text/javascript">
	function toGouWuChe(){
	document.itemForm.action="userCenter!addGouWuChe.do";
	document.itemForm.submit();
	}
	function toPay(){
	document.itemForm.action="userCenter!toPay.do";
	document.itemForm.submit();
	}
    </script>

	</head>


	<body>
		<div align="center">
			<table border="0" cellpadding="0" cellspacing="0" width="910">
				<tbody>
					<tr>
						<td width="100%"></td>
					</tr>
				</tbody>
			</table>
		</div>

		<div id="layout">

			<!-- 页面头部 -->
			<%@ include file="/WEB-INF/common/header/header.jsp"%>

			<!--   主体区   -->
			<div id="simple_product_main">

				<div id="simple_product_left">
				</div>

				<div id="simple_product_right">

					<div id="simple_product_title">
						<span class="simple_product_title"><s:property
								value="product.name" /> </span>
					</div>

					<div id="simple_product_photo">
						<img align="middle" src="<s:property value="product.photo1"/>" />
					</div>

					<form action="#" method="post" name="itemForm">
						<div id="simple_product_detail">


							<ul class="detail_text">
								<li>
									价&nbsp;&nbsp;&nbsp;&nbsp;格：
									<s:property value="product.especialPrice" />
								</li>
								<li>
									运&nbsp;&nbsp;&nbsp;&nbsp;费：
									<s:property value="product.freight" />
								</li>
								<li>
									已&nbsp;售&nbsp;出：
									<s:property value="product.sale" />
									件
								</li>
								<li>
									评&nbsp;&nbsp;&nbsp;&nbsp;价：
									<s:property value="product.productRate" />
									分
								</li>
								<li>
									送&nbsp;积&nbsp;分：
									<s:property value="product.score" />
								</li>
								<li>
									支付方式：网银支付&nbsp;&nbsp;支付宝卡通
								</li>
								<li>
									<hr />
								</li>
								<li>
									颜色分类：红白蓝混色
								</li>
								<li>
									数&nbsp;&nbsp;&nbsp;&nbsp;量：
									<input type="text" size="4" name="productNumber" value="1"
										id="productNumber" />
									件&nbsp;&nbsp;剩余总数：
									<s:property value="product.totalNumber-product.sale" />
									<%
										String tempReturn = (String) session.getAttribute("returnmsg");
										if (tempReturn != null) {
											out.print("<h4>&nbsp;&nbsp;" + tempReturn + "</h4>");
											session.setAttribute("returnmsg", null);
										}
									%>
								</li>
							</ul>
						</div>
						<div id="simple_product_operator">
							<s:hidden name="id" value="%{product.id}" id="idNumber" />
							<ul>
								<li>
									<a href="#" title="立即购买" onclick="toPay()"><img
											src="images/buy.gif" /> </a>
								</li>
								<li>
									<a href="#" title="加入购物车" onclick="toGouWuChe()"><img
											src="images/gwc.gif" /> </a>
								</li>
							</ul>
						</div>
					</form>

				</div>

			</div>
			<!-- simple_product_main end -->
			<!-- footer尾部 -->
			<%@ include file="/WEB-INF/common/footer/footer.jsp"%>
		</div>
	</body>
</html>